public class main {
    public static void main(String[] args) {
        //打印 1 - 100 之间所有的素数
        for(int j = 1;j <= 100;j++)
        {
            int flag = 0;
            for(int i = 2;i <= j / 2;i++)
            {
                if(j % i == 0)
                {
                    flag = 1;
                    break;
                }
            }
            if(flag == 0 || j == 1 || j == 2)
                System.out.print(j + " ");
        }
    }
}
